package cn.jzq.kotoba.modules.spring.ioc.demo;

public class UserServiceImpl implements UserService{

    private UserMapper userMapper;

    private DeptMapper deptMapper;

    public UserServiceImpl() {
        this.userMapper = new UserDao();
        this.deptMapper = new DeptDao();
    }

    @Override
    public UserEntity getUserById(Integer id) {
        return userMapper.getUserById(id);
    }
}
